package com.example.file.security.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.config.ResourceHandlerRegistry;
import org.springframework.web.reactive.config.WebFluxConfigurer;

@Configuration
public class WebConfig implements WebFluxConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        // 将 /inner/** 路径映射到 static/index.html
        registry.addResourceHandler("/inner/**")
                .addResourceLocations("classpath:/static/index.html");
    }
}
